package com.ysstech.reportworld.mapper;

import com.ysstech.reportworld.entity.DataReport;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 数据对应报表信息 Mapper 接口
 * </p>
 *
 * @author lishuangliang
 * @since 2022-12-02
 */
@Component
public interface DataReportMapper extends BaseMapper<DataReport> {
    /**
     * 查询据对应的报表信息
     *
     * @param dataReport
     * @return
     */
    List<DataReport> selectPrimaryByDataId(DataReport dataReport);

    /**
     * 获取报表对应的表信息
     * @param dataReport
     * @return
     */
    List<DataReport> getTableInfo(DataReport dataReport);
}
